package tedu.study.day07_2;

public class OverLoadDemo {
    public static void main(String[] args) {
        int a = 5;
        int b = 5;
        int c = 5;
        boolean ad= (c++>0) || (a++>0) && (b++>0);
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);


        short n = 66;
        int m = 99;
        show();
        //show(22);
        show("zhangsan");
        show("lisi",55);
        show(22,"wangwu");
        show(n);
        //show(3.66);//编译错误，没有double参的show
    }

    public static void show(){ }
    public static void show(String name){ }
    //public static void show(int age){ }
    public static void show(String name,int age){ }
    public static void show(int age,String name){ }
    public static void show(short n){ }

    //public static int show(){ return 1; }//编译错误，与参数类型无关
    //public static void show(String address){ }//编译错误，与参数名称无关
}
